﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;

namespace XNADota
{
    public static class XNADotaHelper
    {
        private static Random _Random = new Random();
        public static int GetRandomNumber(int maxValue)
        {
            return _Random.Next(maxValue);
        }

        public static string RemoveBlp(string name)
        {
            return name.Replace(".blp", "");
        }

        private static Dictionary<string, string> missing = new Dictionary<string, string>();
        public static string DefaultTGA = "ReplaceableTextures\\CommandButtons\\BTNBelt";
        public static void AddMissingFile(string name)
        {
            if (missing.ContainsKey(name) == false)
            {
                missing.Add(name, name);
                PrintMissing();
            }
        }

        public static void PrintMissing()
        {
            foreach (string key in missing.Keys)
            {
                Debug.WriteLine(key);
            }
        }
    }
}
